package com.wisdudu.frame.support.util;

/**
 * Created by qyf on 2016/9/22.
 */

public enum ConvertUtil {
    INSTANCE;

    public String floatToHex(float value) {
        StringBuilder stringBuilder = new StringBuilder("");
        String hex = Integer.toHexString((int) value);
        if (hex.length() < 2) {
            stringBuilder.append(0);
        }
        stringBuilder.append(hex);
        return stringBuilder.toString();
    }
}
